package org.hxyjs.service;


import org.hxyjs.dto.DTO;
import org.hxyjs.entity.Parents;
import org.hxyjs.entity.Parents;
import org.hxyjs.page.PageInfo;
import org.hxyjs.vo.ParentsVo;

public interface ParentsService {
    /**
     * 查询全部家长
     * @return
     */
    public DTO<Parents> getAllParentss() throws Exception;
    /**
     * 删除家长
     * @return
     */
    public DTO<Parents> deleteParentsByPno(String pno) throws Exception;
    /**
     * 修改家长
     * @return
     */
    public DTO<Parents> updateParentsByPno(Parents parents) throws Exception;
    /**
     * 增加家长
     * @return
     */
    public DTO<Parents> addParents(Parents parents) throws Exception;
    /**
     * 分页查询家长
     * @return
     */
    public DTO<Parents> getParentsByPage(PageInfo pageInfo) throws Exception;
    /**
     * 查询家长附上儿童
     * @return
     */
    public DTO<Parents> selectParentsWithChildren(String pno) throws Exception;

    public DTO<Parents> getParentsWithOrdrees(String pno) throws Exception;

    public DTO<Parents> sendCodeMail(String pname) throws Exception;

    public DTO<Parents> updateParentsByPwd(ParentsVo parentsVo) throws Exception;

    public DTO<Parents> activate(String  pno)  throws Exception;


}
